package com.qdlc.p2p.dal.mybatis.pager;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;


public class MapperPageProxy implements ApplicationContextAware{

	private static SqlSessionTemplate sqlSessionTemplate;

	public static SqlSessionTemplate getSqlSessionTemplate(){
		return sqlSessionTemplate;
	}
	
	@Override
	public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
		sqlSessionTemplate = applicationContext.getBean(SqlSessionTemplate.class);
	}
}
